# encoding: utf-8  
'''
Created on 2018年6月14日
description:常量类
@author: zhujianhua
'''
import sys

class InfoMonConstants:
    class ConstError(TypeError):
        pass
    class ConstCaseError(ConstError):
        pass
    def __setattr__(self, name, value):
        if name in self.__dict__:
            raise self.ConstError("can't change const %s" % name)
        self.__dict__[name] = value


       
sys.modules[__name__] = InfoMonConstants()


